package com.peking.donations.plugins.pay.wx.constants;

/**
 * Created by YGR on 16/3/3.
 */
public enum WxAPI {
    /*
    * 1）被扫支付API
    */
    PAY_API("https://api.mch.weixin.qq.com/pay/micropay"),

    /**
     * 2）被扫支付查询API
     */
    PAY_QUERY_API("https://api.mch.weixin.qq.com/pay/orderquery"),

    /**
     * 3）退款API
     */
    REFUND_API("https://api.mch.weixin.qq.com/secapi/pay/refund"),

    /**
     * 4）退款查询API
     */
    REFUND_QUERY_API("https://api.mch.weixin.qq.com/pay/refundquery"),

    /**
     * 5）撤销API
     */
    REVERSE_API("https://api.mch.weixin.qq.com/secapi/pay/reverse"),

    /**
     * 6）下载对账单API
     */
    DOWNLOAD_BILL_API("https://api.mch.weixin.qq.com/pay/downloadbill"),

    /**
     * 7) 统计上报API
     */
    REPORT_API("https://api.mch.weixin.qq.com/payitil/report"),

    /**
     * 8)统一支付API
     */
    UNIFIED_PAY_API("https://api.mch.weixin.qq.com/pay/unifiedorder"),

    /**
     * 9)获取access_token
     */
    ACCESS_TOKEN("https://api.weixin.qq.com/cgi-bin/token?grant_type=client_credential&appid=%s&secret=%s"),

    /**
     * 10)获取jsapi_ticket
     */
    JSAPI_TICKET("https://api.weixin.qq.com/cgi-bin/ticket/getticket?access_token=%s&type=jsapi");
    private String api;

    private WxAPI(String api) {
        this.api = api;
    }

    public String getApi() {
        return api;
    }
}
